﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SecuredSite.Master" AutoEventWireup="true" CodeBehind="CreateMulti.aspx.cs" Inherits="BigLotterySyndicate.Secured.Payments.CreateMulti" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="breadcrumb">
<a href="/Secured/Default.aspx?Ns=0">Home</a> / <a href="/Secured/Default.aspx?Ns=0">Manage funds</a> / <b>Add funds for multiple users</b>
</div>
<div class="content-wrapper">
<table>
<tr>
    <td>Amount:</td>
    <td><asp:TextBox ID="txtAmount" runat="server"></asp:TextBox></td>
</tr>
<tr>
    <th class="left">Account</th>
    <td>
    <script type="text/javascript">
        document.write("<input type='checkbox' id='CheckboxToggleParent' onclick='ToggleAllCheckboxes(this)'/>");

        function ToggleAllCheckboxes(el) {
            var state = el.checked;
            while (el && el.tagName.toLowerCase() != "table") {
                el = el.parentNode;
            }
            if (el) {
                var inputs = el.getElementsByTagName("input");
                for (var idx = 0; idx < inputs.length; idx++) {
                    if (inputs[idx].id != "CheckboxToggleParent" && inputs[idx].type.toLowerCase() == "checkbox")
                        inputs[idx].checked = state;
                }
            }
        }
                            </script>
                            <noscript>&nbsp;</noscript>
    </td>
</tr>
<asp:Repeater ID="RepeaterList" runat="server">
<ItemTemplate>
<tr>
<td><%# PrintPlayerName(Container.DataItem)%></td>
<td><input type="checkbox" runat="server" id="chkAction"/></td>
</tr>
</ItemTemplate>
</asp:Repeater>

</table>
<p>
<asp:Button ID="ButtonAdd" runat="server" Text="Add funds" 
        onclick="ButtonAdd_Click" />
</p>
</div>
</asp:Content>
